package com.rms.server.Domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(name = "Order", description = "订单信息实体")
@Getter
@Setter
public class Order {

    @Schema(description = "订单的唯一标识符")
    private Long orderId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "订单的创建时间")
    private LocalDateTime orderDate;

    @Schema(description = "订单的总价")
    private BigDecimal totalPrice;

    @Schema(description = "订单的总利润")
    private BigDecimal totalProfit;
}
